package study.dubbo.springcloud.provider.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;
import study.dubbo.api.service.ExceptionService;

//@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@Slf4j
@Component
@DubboService
public class ExceptionServiceImpl implements ExceptionService {

    @Override
    public void throwEx(String name) {
        log.info("i am dubbo service!");
        if (1 == 1) {
            throw new RuntimeException("sssssssssss");
        }
    }
}
